﻿using Himp.Outpatient;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;

namespace Himp.Platform
{
    public class DataDictsQuery : ISingletonDependency
    {
        private readonly IServiceProvider _serviceProvider;

        public DataDictsQuery(IServiceProvider serviceProvider)
        {
            _serviceProvider = serviceProvider;
        }

        #region 数据字典

        public async Task<PagedResultDto<DataDictDto>> GetDataDictListP1Async(DataDictInput input)
        {
            var dataDictService = _serviceProvider.GetService<IDataDictService>();

            var list = await dataDictService.GetListAsync(input);

            return list;
        }

        public async Task<PagedResultDto<DataDictDto>> GetDataDictListP2Async(DataDictInput input)
        {
            var dataDictService = _serviceProvider.GetService<IDataDictService>();
            var list = await dataDictService.GetListAsync(input);

            return list;
        }

        public async Task<PagedResultDto<DataDictDto>> GetDataDictListP3Async(DataDictInput input)
        {
            var dataDictService = _serviceProvider.GetService<IDataDictService>();
            var list = await dataDictService.GetListAsync(input);

            return list;
        }

        public async Task<PagedResultDto<DataDictDto>> GetDataDictListP4Async(DataDictInput input)
        {
            var dataDictService = _serviceProvider.GetService<IDataDictService>();
            var list = await dataDictService.GetListAsync(input);

            return list;
        }

        public async Task<PagedResultDto<DataDictDto>> GetDataDictListP5Async(DataDictInput input)
        {
            var dataDictService = _serviceProvider.GetService<IDataDictService>();
            var list = await dataDictService.GetListAsync(input);

            return list;
        }

        #endregion

        #region 业务字典

        public async Task<PagedResultDto<BizDictDto>> GetBizDictListP1Async(BizDictInput input)
        {
            var bizDictService = _serviceProvider.GetService<IBizDictService>();
            var list = await bizDictService.GetListAsync(input);

            return list;
        }

        public async Task<PagedResultDto<BizDictDto>> GetBizDictListP2Async(BizDictInput input)
        {
            var bizDictService = _serviceProvider.GetService<IBizDictService>();
            var list = await bizDictService.GetListAsync(input);

            return list;
        }

        public async Task<PagedResultDto<BizDictDto>> GetBizDictListP3Async(BizDictInput input)
        {
            var bizDictService = _serviceProvider.GetService<IBizDictService>();
            var list = await bizDictService.GetListAsync(input);

            return list;
        }

        public async Task<PagedResultDto<BizDictDto>> GetBizDictListP4Async(BizDictInput input)
        {
            var bizDictService = _serviceProvider.GetService<IBizDictService>();
            var list = await bizDictService.GetListAsync(input);

            return list;
        }

        public async Task<PagedResultDto<BizDictDto>> GetBizDictListP5Async(BizDictInput input)
        {
            var bizDictService = _serviceProvider.GetService<IBizDictService>();
            var list = await bizDictService.GetListAsync(input);

            return list;
        }

        #endregion
    }
}
